package org.skipper.samples.spring.transaction.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author skipper
 * @since 2022-01-11
 */
@TableName("gift_info")
@Data
@Accessors(chain = true)
public class GiftInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String giftName;

    private Integer price;

    //如果不填写填充规则，则不填充
    private Date createTime;

    //如果不填写填充规则，则不填充
    private LocalDateTime updateTime;

    //逻辑删除，默认值为0，删除之后为1
    @TableLogic(delval = "1", value = "0")
    private int isDeleted;

}
